package com.gnerv.cms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gnerv.cms.dto.TaskDTO;
import com.gnerv.cms.dto.TaskSaveDTO;
import com.gnerv.cms.dto.TaskSearchDTO;
import com.gnerv.cms.entity.Task;

import java.util.List;

public interface ITaskService extends IService<Task> {

    boolean saveTask(TaskSaveDTO taskSaveDTO);

    boolean createTask(TaskSaveDTO taskSaveDTO) throws ClassNotFoundException;

    boolean deleteTask(String taskId);

    boolean updateTask(TaskSaveDTO taskSaveDTO);

    TaskDTO selectTask(String taskId);

    List<TaskDTO> listTask(TaskSearchDTO taskSearchDTO);

    boolean startTask(String taskId);

    boolean stopTask(String taskId);

    boolean updateTaskCount(String taskId);
}
